package com.yuxinyang.memory.admin.user.controller;


import com.yuxinyang.memory.admin.common.BaseController;
import com.yuxinyang.memory.admin.common.ResponseProtocol;
import com.yuxinyang.memory.admin.user.service.MemoryUserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.request.async.DeferredResult;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author 余秀良
 * @since 2019-08-29
 */
@RestController
@RequestMapping("/user")
public class MemoryUserController extends BaseController {
    @Resource
    private MemoryUserService service;

    @RequestMapping(value = "/get")
    public DeferredResult<ResponseProtocol> get(HttpServletRequest request) {
        return service.userList();
    }
}

